/**
 * @FileName Client.java
 * @Package com.designMode.abstractFactory
 * -------------------------------------
 * @function Please write description of function
 * @Date 2016-1-5 下午3:20:40
 * -------------------------------------
 * Copyright (c) 2016,顾博君 All Rights Reserved.
 */
package com.designMode.builder;

/**
 * @author 顾博君
 * @ClassName Client
 * @Date 2016-1-5 下午3:20:40
 * @Function 场景类
 */

public class Client {
    public static void main(String[] args) {
        //创建导演类
        Director director1 = new Director();
        //建造A产品
        Product productA = director1.getAProduct();
        productA.doSomething();
        //创建导演类
        Director director2 = new Director();
        //建造B产品
        Product productB = director2.getBProduct();
        productB.doSomething();
    }
}
